#define DBC_CHECK_PRECONDITION

using System;
using System.Xml;

using DesignByContract;

namespace Outcoding.GraphGenerator.Entities.XmlBuilders {
    public class CategoryAxisXmlBuilder : IXmlBuilder {

        private CategoryAxis mResultObject = null;

        public CategoryAxis ResultObject {
            get {
                return mResultObject;
            }
        }

        public CategoryAxisXmlBuilder(XmlNode categoryAxisXmlNode) {
            Check.Require(categoryAxisXmlNode != null, "Xml source node cannot be null");
            Check.Require(categoryAxisXmlNode.Name.CompareTo(XmlTagNames.categoryaxis.ToString()) == 0, "A CategoryAxis Xml node must be supplied.");
            this.BuildObject(categoryAxisXmlNode);
        }

        private void BuildObject(XmlNode categoryAxisXmlNode) {
            mResultObject = new CategoryAxis();
        }
    }
}
